package com.conpany.project.MapperTest;

import com.company.project.constant.TradeEnums;
import com.company.project.dao.TradeCouponMapper;
import com.company.project.model.TradeCoupon;
import com.conpany.project.Tester;
import org.junit.Test;

import javax.annotation.Resource;

public class CouponMapper extends Tester {


    @Resource
    TradeCouponMapper tradeCouponMapper;

    @Test
    public void useCoupon(){

        TradeCoupon bean = new TradeCoupon();
        bean.setCouponId("11");
        bean.setIsUsed("1");
        bean.setOrderId("10");
        int i = tradeCouponMapper.useCoupon(bean);
        System.out.println("  i = "+i);
    }

    @Test
    public void unUseCoupon(){

    }
}
